﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Site2.Master" AutoEventWireup="true"
    CodeBehind="DynamicChart.aspx.cs" Inherits="CDOP.Charts.DynamicChart" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:DropDownList ID="ddColumns" runat="server" DataSourceID="ObjectDataSourceColumns"
            DataTextField="Name" DataValueField="Name" AutoPostBack="true" OnSelectedIndexChanged="DdColumnsSelectedIndexChanged">
        </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSourceColumns" runat="server" SelectMethod="GetColumnNamesForDynamicChart"
            TypeName="CDOP.Model.Chart"></asp:ObjectDataSource>
    </div>
    <br />
    <hr />
    <br />
    <div>
        <asp:Chart ID="ChartColumn" runat="server">
            <Series>
                <asp:Series Name="SeriesData" CustomProperties="DrawingStyle=Cylinder, MaxPixelPointWidth=50"
                    ShadowOffset="2">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartAreaData">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    </div>
    <br />
    <br />
    <div>
        <asp:Chart ID="ChartPie" runat="server">
            <Series>
                <asp:Series ChartType="Pie" Name="SeriesData">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartAreaData">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    </div>
     <br />
    <br />
    <div>
    
        <asp:GridView ID="grdDynamiCChart" runat="server">
        </asp:GridView>
    
    </div>
</asp:Content>
